<?php
/**
* エラーチェッククラス
**/
require_once( '../system/Class_M_DAO.php' );
class t_m_orderdetail extends Class_M_DAO {
	
	//protected properties begin
	/**
	 *
	 * テーブル名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_table = "d_order_goods";
	
	/**
	 *
	 * 主キー名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_pkey = "a.id";
	
	/**
	 *
	 * ソート順
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	 protected $_order = "a.id";
	 
	 
     public function search($where='' ,&$page = NULL ){	
		$sql = "SELECT *  FROM d_order_goods a ,d_goods b";
		$sqlcnt = "SELECT COUNT(*) AS cnt FROM d_order_goods a ";
		return  parent::search($where ,$page ,$sql,$sqlcnt);
	}
}
?>